package com.ny.until;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class DbUtil {
    private final static String URL = "jdbc:mysql://localhost:3306/usersDb?useSSL=false&serverTimezone=UTC";
    private final static String ROOT = "root";
    private final static String PASSWORD = "123456";
    public Connection getCon() throws SQLException {
        Connection connection = DriverManager.getConnection(URL,ROOT,PASSWORD);
        return connection;
    }
}
